package com.ruoyi.common.constant;

/**
 * 通用常量信息
 * 
 * @author ruoyi
 */
public class Constants
{
    /**
     * UTF-8 字符集
     */
    public static final String UTF8 = "UTF-8";

    /**
     * GBK 字符集
     */
    public static final String GBK = "GBK";

    /**
     * http请求
     */
    public static final String HTTP = "http://";

    /**
     * https请求
     */
    public static final String HTTPS = "https://";

    /**
     * 通用成功标识
     */
    public static final String SUCCESS = "0";

    /**
     * 通用失败标识
     */
    public static final String FAIL = "1";

    /**
     * 登录成功
     */
    public static final String LOGIN_SUCCESS = "Success";

    /**
     * 注销
     */
    public static final String LOGOUT = "Logout";

    /**
     * 注册
     */
    public static final String REGISTER = "Register";

    /**
     * 登录失败
     */
    public static final String LOGIN_FAIL = "Error";

    /**
     * 当前记录起始索引
     */
    public static final String PAGE_NUM = "pageNum";

    /**
     * 每页显示记录数
     */
    public static final String PAGE_SIZE = "pageSize";

    /**
     * 排序列
     */
    public static final String ORDER_BY_COLUMN = "orderByColumn";

    /**
     * 排序的方向 "desc" 或者 "asc".
     */
    public static final String IS_ASC = "isAsc";
    
    /**
     * 系统用户授权缓存
     */
    public static final String SYS_AUTH_CACHE = "sys-authCache";

    /**
     * 参数管理 cache name
     */
    public static final String SYS_CONFIG_CACHE = "sys-config";

    /**
     * 参数管理 cache key
     */
    public static final String SYS_CONFIG_KEY = "sys_config:";

    /**
     * 字典管理 cache name
     */
    public static final String SYS_DICT_CACHE = "sys-dict";

    /**
     * 字典管理 cache key
     */
    public static final String SYS_DICT_KEY = "sys_dict:";

    /**
     * 资源映射路径 前缀
     */
    public static final String RESOURCE_PREFIX = "/profile";

    /**
     * RMI 远程方法调用
     */
    public static final String LOOKUP_RMI = "rmi://";

    /**
     * 平台编码
     */
    public static final String PLATFORM = "000000";

    /**
     * 目录
     */
    public static final String CATALOGUE = "M";

    /**
     * 菜单
     */
    public static final String MENU = "C";

    /**
     * 按钮
     */
    public static final String BUTTON = "F";

    public static final Integer DAYS = 365*100;

    public static final String TRUE_STR = "true";

    /**
     * 主框架页-默认皮肤样式名称
     */
    public static final String SYS_INDEX_SKINNAME = "sys.index.skinName";

    /**
     * 用户管理-账号初始密码
     */
    public static final String SYS_USER_INITPASSWORD = "sys.user.initPassword";

    /**
     * 主框架页-侧边栏主题
     */
    public static final String SYS_INDEX_SIDETHEME = "sys.index.sideTheme";

    /**
     * 账号自助-是否开启用户注册功能
     */
    public static final String SYS_ACCOUNT_REGISTERUSER = "sys.account.registerUser";

    /**
     * 用户管理-密码字符范围
     */
    public static final String SYS_ACCOUNT_CHRTYPE = "sys.account.chrtype";

    /**
     * 用户管理-初始密码修改策略
     */
    public static final String SYS_ACCOUNT_INITPASSWORDMODIFY = "sys.account.initPasswordModify";

    /**
     * 用户管理-账号密码更新周期
     */
    public static final String SYS_ACCOUNT_PASSWORDVALIDATEDAYS = "sys.account.passwordValidateDays";

    /**
     * 主框架页-菜单导航显示风格
     */
    public static final String SYS_INDEX_MENUSTYLE = "sys.index.menuStyle";

    /**
     * 主框架页-是否开启页脚
     */
    public static final String SYS_INDEX_IGNOREFOOTER = "sys.index.ignoreFooter";

}
